package com.wanxi.array;

/**
 * 求数组里面的偶数和
 */
public class EvenSumArray {
    public static void main(String[] args) {
        int[] arr = {11, 22, 33, 44, 55};
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] % 2 == 0) {
                sum += arr[i];
            }

        }
        System.out.println(sum);
    }
}
